home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d7
/
ap100.arc
/
PUMAXMT.SLT
< prev
next >
Wrap
Text File
|
1991-04-28
|
2KB
|
54 lines
str pumacmd [127];
main()
{
int lfp, len, c, first, last;
str fullpath [80];
str file[80];
str port [4];
lfp=fopen ("pumalist","w");
if (lfp == -1) {
prints ("cannot open list file");
return (0);
}
len=strlen (_ext_filespec);
first=0;
last=0;
while (last < len) {
last=strchr (_ext_filespec, first, ' ');
if (last == -1) last = len;
substr (_ext_filespec,first,last-first,file);
if (first == 0) {
// first file already has dir prepended.
fputs (file,lfp);
}
else {
if (subchr (file, 0) != '\' && subchr (file, 0) != '.' && subchr(file, 1) != ':') {
substr (_up_dir,0,65,fullpath);
strcat (fullpath,file);
fputs (fullpath,lfp);
}
else fputs (file,lfp);
}
fputs ("^M^J",lfp);
first=last+1;
}
fclose (lfp);
pumacmd="N+ F+ M- P";
itos (get_port(), port);
strcat (pumacmd, port); // add port
strcat (pumacmd, " S0"); // port speed (0=auto adjust)
if (_zmod_scrash) strcat (pumacmd, " R+"); // resume file
else strcat (pumacmd, " O+"); // overwrite file
if (_sound_on) strcat (pumacmd, " B+"); // beep when finished
else strcat (pumacmd, " B-"); // silence
strcat (pumacmd, " X+ s @pumalist");
prints (pumacmd);
// try MPT (the newer version) first, then puma.
if (run ("mpt",pumacmd,0) == -1) {
run ("puma",pumacmd,0);
}
fdelete ("pumalist");
return (0);
}